(function() {
    var siteRoot = nsbase.consts.site_root;
    nsbase.config.actionUrl = {
        index: new function() {
            this.login = siteRoot + "/login";
            this.validateEmail = siteRoot + "/validate_email";
            this.register = siteRoot + "/register";
            this.forgetPwd = siteRoot + "/forget_password";
            this.feedback = siteRoot + "/feedback";
            this.setLanguage = siteRoot + "/setLanguage";
        },
        dashboard: new function(){
        	 this.index = siteRoot + "/dashboard/index";
             this.getSummaryChartData = siteRoot + "/dashboard/get_summary_chart_data";
             this.getKpiItemChartData = siteRoot + "/dashboard/get_kpi_chart_data";
             this.getMinuteChartData = siteRoot + "/dashboard/get_minute_chartdata";
             this.getShareInfo = siteRoot + "/dashboard/get_share_info";
             this.getFoodList = siteRoot + "/dashboard/getFoodList"
        },
        safe: new function() {
            this.resetPwd = siteRoot + "/safe/reset_password";
        },
        game:new function(){
            this.createMapGame = siteRoot + "/game/create_map_game";
            this.gameList = siteRoot + "/game/game_list";
            this.getMapGameList = siteRoot + "/game/get_my_map_game_list";
            this.mapGameDetail = siteRoot + "/game/map_game_detail";
        },
        user: new function() {
            this.changePwd = siteRoot + "/user/change_password";
            this.imageUpload = siteRoot + "/user/image_upload";
            this.updateUserInfo = siteRoot + "/user/update_user_info";
        },
        message:new function(){
            this.getMessageList = siteRoot + "/message/get_message_list";
            this.dealMessage = siteRoot + "/message/deal_message";
        },
        social:new function(){
            //this.searchFriend = siteRoot + "/social/search_friend";
            this.getFriendList = siteRoot + "/social/get_friend_list";
            this.getGroupList = siteRoot + "/social/get_group_list";
            this.groupDetail = siteRoot + "/social/group_detail";
            this.friendDetail = siteRoot + "/social/friend_detail";
            this.addFriend = siteRoot + "/social/add_friend";
            this.delFriend = siteRoot + "/social/del_friend";
            this.joinGroup = siteRoot + "/social/join_group";
            this.quitGroup = siteRoot + "/social/quit_group";
            this.getGroupMembers = siteRoot + "/social/get_group_members";
            this.getKpiItemChartData = siteRoot + "/social/get_kpi_chart_data";
            this.imageUpload = siteRoot + "/social/image_upload";
            this.updateGroupContent = siteRoot + "/social/update_group_content";
            this.updateGroupInfo = siteRoot + "/social/update_group_info";
            this.groupMembers = siteRoot + "/social/group_member";
            this.searchFriends = siteRoot + "/social/search_friends";
            this.searchUsers = siteRoot + "/social/search_users";
            this.inviteFriend = siteRoot + "/social/invite_friend";
            this.removeMember = siteRoot + "/social/remove_member";
            this.setGroupAdmin = siteRoot + "/social/set_group_admin";
            this.removeGroupAdmin = siteRoot + "/social/remove_group_admin";
        },
        help:new function(){
            this.search = siteRoot + "/help/search";
        },
        hardware:new function () {
            this.getStationStatus = siteRoot + "/hardware/get_station_status";
            this.bindDevice = siteRoot + "/hardware/bind_device";
            this.unbindDevice = siteRoot + "/hardware/unbind_device";
            this.setUploadTime = siteRoot + "/hardware/set_upload_time";
            this.setSleepTime = siteRoot + "/hardware/set_sleep_time";
            this.getDeviceId = siteRoot + "/hardware/get_device_id";
        },
        news:new function () {
            this.getNewsList = siteRoot + "/news/get_news_list";
        }
    };
	
})();